package io.renren.modules.cat.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.cat.dao.VaccineRecordDao;
import io.renren.modules.cat.entity.VaccineRecordEntity;
import io.renren.modules.cat.service.VaccineRecordService;


@Service("vaccineRecordService")
public class VaccineRecordServiceImpl extends ServiceImpl<VaccineRecordDao, VaccineRecordEntity> implements VaccineRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VaccineRecordEntity> page = this.page(
                new Query<VaccineRecordEntity>().getPage(params),
                new QueryWrapper<VaccineRecordEntity>()
        );

        return new PageUtils(page);
    }

}